package com.trg.generaltool.service.rabbitmq.conform.topics;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @ClassName: ProviderTopics
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/19 16:43
 * @Version: 1.0
 * @Return:
 **/
@Component
public class ProviderTopics {
    @Autowired
    RabbitTemplate rabbitTemplate;

    public void sendMsg(){
        rabbitTemplate.convertAndSend("topics","deal.a.b","topics模型");
    }
}
